#pragma once
#include "KFrame.h"

#include "KSideBar.h"
#include "KPanel.h"
#include "KButton.h"


class MainFrame : public KFrame
{
public:
	MainFrame(){}

protected:
	DECLARE_MSG_HANDLER()

	BOOL OnCreate(const KMessage & rMsg);
	BOOL OnSize(const KMessage & rMsg);
	BOOL OnDestroy(const KMessage & rMsg);
	BOOL OnMinSizeBtn(const KMessage & rMsg);
	BOOL OnMaxSizeBtn(const KMessage & rMsg);
	BOOL OnCloseBtn(const KMessage & rMsg);

private:
	KSideBar *	m_TopLeft;
	KSideBar *	m_TopMid;
	KSideBar *	m_TopRight;
	KSideBar *	m_CenterLeft;
	KSideBar *	m_CenterRight;
	KSideBar *	m_BottomLeft;
	KSideBar *	m_BottomMid;
	KSideBar *	m_BottomRight;

	KPanel *	m_Center;

	KButton *	m_CloseBtn;
	KButton *	m_MaxBtn;
	KButton *	m_MinBtn;
	KButton *	m_MenuBtn;
};